package xin.marcher.module.common.exception;

/**
 *
 */
public enum ProductErrorCodeEnum implements BaseErrorCodeEnum {

    /**
     * 参数错误
     */
    PARAM_ERROR("100001", "参数错误"),

    /**
     * 无返回结果
     */
    NO_RESULT_ERROR("100002", "无返回结果"),

    /**
     * 商品商量超出限制
     */
    PRODUCT_LIMIT_ERROR("100003", "商品商量超出限制"),

    /**
     * 参数校验失败
     */
    PARAM_CHECK_ERROR("100004", "参数校验失败:{0}"),

    /**
     * 审批失败
     */
    AUDIT_ERROR("100101", "无权审批"),
    ;

    private String errorCode;

    private String errorMsg;

    ProductErrorCodeEnum(String errorCode, String errorMsg) {
        this.errorCode = errorCode;
        this.errorMsg = errorMsg;
    }

    @Override
    public String getErrorCode() {
        return errorCode;
    }

    public void setErrorCode(String errorCode) {
        this.errorCode = errorCode;
    }

    @Override
    public String getErrorMsg() {
        return errorMsg;
    }

    public void setErrorMsg(String errorMsg) {
        this.errorMsg = errorMsg;
    }

}